<?php
class Model_Category_Property extends Model_Category implements Model_Category_Interface
{
    protected static  $_collection = 'category';

    protected static $_requirements = array(
     //   'em'  => array('Required', 'Validator:EmailAddress'), //Email
    );

    public function __construct($data = array(), $config = array())
	{
        $config['collection'] = 'category';

        static::$_transcript = array_merge(array(
            'prsa' => 'price_range_sale',
            'prrt' => 'price_range_rent',
        ), static::$_transcript);
        
        parent::__construct($data, $config);
    }

    public function getQuickSearchTabs()
    {
        return array('Residential','Commercial');
    }

    public function getQuickSearchForms()
    {
        return array(
            'residential'   => new Category_Form_QuickSearchResidentialForm(array('category' => $this)),
            'commercial'    => new Category_Form_QuickSearchCommercialForm(array('category' => $this))
            );
    }

}
